package com.kyxx.topics.utils;

/**
 * Created by Administrator on 2016/7/25.
 */
public class SettingUtils {
    private boolean lieBiaoXianShiZhaiYao = false;
    private int ziTiDaXiao = 1;//0:小  1：中  2：大  3：超大
    private int feiWiFiWangLuoLiuLiang = 1;//0:最佳效果（下载大图）  1：较省流量（智能下图）  2：极省流量（不下载图）
    private boolean tuiSongTongZhi = true;
    private boolean shouCangShiZhuanFa = false;
    private int ziDongBoFangShiPin = 1;//0:3G/4G和Wi-Fi  1:仅Wi-Fi  2:关闭

    public boolean isLieBiaoXianShiZhaiYao() {
        return PreferenceUtil.getBoolean("lieBiaoXianShiZhaiYao", false);
    }

    public void setLieBiaoXianShiZhaiYao(boolean lieBiaoXianShiZhaiYao) {
        PreferenceUtil.putBoolean("lieBiaoXianShiZhaiYao", lieBiaoXianShiZhaiYao);
    }

    public int getZiTiDaXiao() {
        return PreferenceUtil.getIntDefault("ziTiDaXiao", 0);
    }

    public void setZiTiDaXiao(int ziTiDaXiao) {
        PreferenceUtil.putInt("ziTiDaXiao", ziTiDaXiao);
    }

    public int getFeiWiFiWangLuoLiuLiang() {
        return PreferenceUtil.getIntDefault("feiWiFiWangLuoLiuLiang", 0);
    }

    public void setFeiWiFiWangLuoLiuLiang(int feiWiFiWangLuoLiuLiang) {
        PreferenceUtil.putInt("feiWiFiWangLuoLiuLiang", feiWiFiWangLuoLiuLiang);
    }

    public boolean isTuiSongTongZhi() {
        return PreferenceUtil.getBoolean("tuiSongTongZhi", true);
    }

    public void setTuiSongTongZhi(boolean tuiSongTongZhi) {
        PreferenceUtil.putBoolean("tuiSongTongZhi", tuiSongTongZhi);
    }

    public boolean isShouCangShiZhuanFa() {
        return PreferenceUtil.getBoolean("shouCangShiZhuanFa", false);
    }

    public void setShouCangShiZhuanFa(boolean shouCangShiZhuanFa) {
        PreferenceUtil.putBoolean("shouCangShiZhuanFa", shouCangShiZhuanFa);
    }

    public int getZiDongBoFangShiPin() {
        return PreferenceUtil.getIntDefault("ziDongBoFangShiPin", 1);
    }

    public void setZiDongBoFangShiPin(int ziDongBoFangShiPin) {
        PreferenceUtil.putInt("ziDongBoFangShiPin", ziDongBoFangShiPin);
    }
}
